//
//  TopicListHeaderView.h
//  BaseProject
//
//  Created by 王洋 on 2020/12/11.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProClassificationModel.h"
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TopicListHeaderActionType) {
    
    TopicListHeaderActionType_hot,

    TopicListHeaderActionType_new,
};

@interface TopicListHeaderView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *mainImageView;

@property (weak, nonatomic) IBOutlet UILabel *mainTitleLab;

@property (weak, nonatomic) IBOutlet UILabel *countLab;

@property (weak, nonatomic) IBOutlet UILabel *contentLab;

//最新
@property (weak, nonatomic) IBOutlet UIButton *hotestBtn;
@property (weak, nonatomic) IBOutlet UIView *hotSlide;

//最热
@property (weak, nonatomic) IBOutlet UIButton *newestBtn;
@property (weak, nonatomic) IBOutlet UIView *newestSlide;

@property (nonatomic, copy) void(^TopicListHeaderViewBlock)(TopicListHeaderActionType type);

+ (CGFloat)calculateHeightWithModel:(ProClassificationModel *)model;

- (void)fillWithModel:(ProClassificationModel *)model;

@end

NS_ASSUME_NONNULL_END
